package com.he.simplefactorymodel.product.concreteproduct;

import com.he.simplefactorymodel.product.Operator;

import java.math.BigDecimal;

public class SubOpt<T extends BigDecimal> implements Operator<T> {
    @Override
    public T getResult(T o1, T o2) {
        return (T) o1.subtract(o2);
    }
}
